import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    meunitem:[],
  },
  getters: {
    // 获取数据
    getData(state) {
      return state.meunitem
    }
  },
  mutations: {
    // 存储数据
    setData(state, payload) {
      state.meunitem = payload
    },
    // 删除数据
    removeData(state) {
      state.meunitem = null
    }
  },
  actions: {

  },
  modules: {

  }
})
